package com.example.common;

import com.zhy.http.okhttp.callback.Callback;
import org.json.JSONObject;
import okhttp3.Response;

/**
 * Created by tong on 16/10/18.
 */

public abstract class JSONCallback extends Callback<JSONObject> {
    @Override
    public JSONObject parseNetworkResponse(Response response, int id) throws Exception {
        return new JSONObject(response.body().string());
    }
}
